package cn.com.chengmandian.core.tenant;

import cn.com.chengmandian.core.tenant.pojo.TenantInfo;

public class TenantUtil {
    private static ThreadLocal<TenantInfo> tenant = new ThreadLocal<>();

    public static void set(TenantInfo tenantInfo) {
        tenant.set(tenantInfo);
    }

    public static TenantInfo get() {
        return tenant.get();
    }

    public static void remove() {
        tenant.remove();
    }
}
